package com.cmrx.model.dao;

import com.cmrx.model.entity.CommonPicture;
import com.cmrx.model.entity.Photo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;
@Mapper
@Repository
public interface ScenePictureDao {

    int addPictuer(Map<String, Object> map);

    int selectCountScenePicture(@Param("investigationid") String investigationid);

    int addScenePictuer(Map<String, Object> map);

    List<Map<String, Object>> selectPictuer(Map<String, String> map);

    int deleteCommonPictuer(Map<String, String> map);

    int deleteScenePictuer(Map<String, String> map);

    List<Map<String, Object>> selectPhoto(Map<String, String> map);

    int deleteScenePhoto(Map<String, String> map);

    int updatePhoto(Map<String, String> map);

    int updateCommonPicture(Map<String, String> map);

    int insertPicture(CommonPicture commonPicture);

    int selectCountPhoto(@Param("investigationid") String investigationid);

    int insertPhoto(Photo photo);

    int addPictureThum(Map<String, Object> map);

    int deleteCommonPictuerThum(Map<String, String> map);

    Map<String, Object> selectOriginalPicture(@Param("id") String id);

}
